package com.yq.ylmall.enums.activity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ObtainType {
    PUBLIC(1, "手动领取"),
    ISSUE(2, "发放兑换码"),
    ;
    @EnumValue
    private final int value;

    @JsonValue
    private final String desc;
}
